<template>
  <div>
    <h2>工作台</h2>
    <el-button @click="fn1">获取当前勾选</el-button>
    <el-button @click="fn2">设置当前勾选</el-button>

    <hr />
    <MenuCheck ref="menuCheck" />
  </div>
</template>

<script>
import MenuCheck from "@/components/menu-check/index.vue";
export default {
  components: {
    MenuCheck,
  },

  methods: {
    fn1() {
      console.log(this.$refs.menuCheck.get());
    },

    fn2() {
      this.$refs.menuCheck.set([2, 3, 1]);
    },
  },
};
</script>
